package com.youboy.wechatapi.web.Interceptors;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;

@Component
public class BindInterceptors extends AbstractLogInterceptor<String>{
	
	@Override
	public boolean preHandle(HttpServletRequest request,
			HttpServletResponse response, Object handler) throws Exception {
		if(accept(request, response)){
			String url =   "xxxxxxxxxxx"+new Date();
			addLog(url);
		}
		return true;
	}

	@Override
	public boolean accept(HttpServletRequest request, HttpServletResponse response) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public void doWith(String t) {
		System.out.println();
	}
}
